package com.example.demo.Entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import java.util.Date;
import javax.persistence.Entity;
import javax.persistence.Id;

@Entity
@Data
public class OrderList {
    @Id
    private long OrderId;                 //订单编号
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date OrderDate;                 //下单日期
    private int Number;                     //购买数量
    private String CustomerId;              //顾客id
    private String CustomerName;            //顾客名称 对应于ShopUser的username
    private boolean IsShipped;              //是否发货
    private Date ShipDate;
    private boolean IsPayed;                //是否付款
    private String Remark;                  //备注信息
    private String CustomerAddress;         //收货地址
    private String ISBN;                    //图书ISBN号
    private float Price;                    //价格 图书价格*数量
    private boolean Confirmed;              //是否确认订单
}
















